# class SU7:
#     def __init__(self,wheelNum,color):
#         self.wheelNum = wheelNum
#         self.color = color
#     def getSU7info(self):
#         print(f'车轮子个数：{self.wheelNum}，颜色：{self.color}')
#     def run(self):
#         print('车在奔跑')
#
# BMW = SU7(4,'blue')
# BMW.getSU7info()
# BMW.run()

# class Student(object):
#     def __init__(self,name,score):
#           self.__name = name
#           self.__score = score
#     def info(self):
#         print(f'name:{self.__name},score:{self.__score}')
#     def getScore(self):
#         return self.__score
#     def setScore(self,score):
#         self.__score = score
# stu = Student('李四',99)
# print(F'修改前分数：{stu.getScore()}')
# stu.info()
# stu.setScore(59)
# print(f'修改后分数:{stu.getScore()}')
# stu.info()

class Person(object):
    def __init__(self,name,age,money):
        self.name = name
        self.age = age
        self.__money = money
    def setMoney(self,money):
        self.__money = money
    def getMoney(self):
        return self.__money
    def run(self):
        print('run')
    def eat(self):
     print('eat')